<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class Game
 * 
 * @property int $id
 * @property int $partner_id
 * @property string $partner_name
 * @property int $game_type
 * @property string $name
 * @property string $img_url
 * @property string $game_code
 * @property string $game_url
 * @property string $type
 * @property string $device
 * @property int $jackpot
 * @property int $status
 * @property string $extend
 * @property bool $badge
 * @property \Carbon\Carbon $hot_end_time
 * @property \Carbon\Carbon $new_end_time
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class Game extends Eloquent
{
	protected $table = 'game';

	protected $casts = [
		'partner_id' => 'int',
		'game_type' => 'int',
		'jackpot' => 'int',
		'status' => 'int',
		'badge' => 'bool'
	];

	protected $dates = [
		'hot_end_time',
		'new_end_time'
	];

	protected $fillable = [
		'partner_id',
		'partner_name',
		'game_type',
		'name',
		'img_url',
		'game_code',
		'game_url',
		'type',
		'device',
		'jackpot',
		'status',
		'extend',
		'badge',
		'hot_end_time',
		'new_end_time'
	];
}
